package model

import "github.com/crack007/go-im/src/common/util"

type BroadcastModel struct {
	Id        int    `json:"id"`
	Action    string `json:"action"`
	Message   string `json:"message"`
	CreatedAt string `json:"createdAt"`
}

func NewBroadcastModel(action string, msg string) *BroadcastModel {
	return &BroadcastModel{
		Action:    action,
		Message:   msg,
		CreatedAt: util.GetDatetime(),
	}
}
